import { http } from "@/service/https";

// 登录接口
export const LOG_IN = (data: any) => http.post("/userbe/login", data);
// 解锁接口
export const LOG_UNLOCK = (data: any) => http.post("/userbe/login", data);
// 登录接口
export const LOG_FACE= (data: any) => http.post("/userbe/login_face", data);
// 微信登录接口
export const LOG_WX= (data: any) => http.post("/userbe/login_scan", data);
// 微信和已有账号绑定接口
export const LOG_WX_BIND= (data: any) => http.post("/userbe/login_scan_bind", data);
// 安全退出登录
export const LOG_OUT_SAFELY = () => http.post("/userbe/logout");
// 获得用户信息
export const GET_USER_INFO = (data:any) => http.post<any>("/userbe/user/info", data);
// 编辑用户信息
export const UPDATE_USER_INFO = (data:any) => http.post<any>("/userbe/update/userinfo", data);

// 获得权限列表
// export const GET_PERMISSION_LIST = () => http.post("v1/bus/menu/permissions");

// 上传图片
// export const UPLOAD_FILES = (data: any) => http.post("v1/bus/file/upload", data, {
//   contentType: "form-data-file"
// });
